{include file="public/header" /}</head>
<body class="layui-anim">
<div class="x-nav layui-row">
	<span class="layui-breadcrumb layui-col-md9 layui-col-sm9">
		<a href="javascript:;">首页</a>
		{if $_page_navi.0}<a href="javascript:;">{$_page_navi.0.NavName}</a>{/if}
		{if $_page_navi.1}<a><cite>董事分红</cite></a>{/if}
	</span>
	<a class="layui-btn layui-btn-small" style="float:right" href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon">&#xe9aa;</i></a>
</div>
<div class="x-body">
	<blockquote class="layui-elem-quote layui-clear " style="padding: 5px;line-height: 38px;">
		<span style="font-size: 16px;"><i class="layui-icon">&#xe653;</i>&nbsp;董事分红</span>
		<form class="layui-form layui-col-md8 x-so layui-form-pane x-right" style="margin: 0;text-align: right;">
			<input class="layui-input" placeholder="请输入姓名/编号" name="keyword" value="{$Request.param.keyword}"/>
			<input class="layui-input date_range" placeholder="选择日期" name="start" value="{$Request.param.start}" style="width: 20%"/>
			<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
			{if $Request.param.keyword || $Request.param.start || $Request.param.type_t || $Request.param.intro || $Request.param.category}
			<a href="{:url('account/index',['type'=>$Request.param.type])}" class="layui-btn layui-bg-blue" >撤销搜索</a>
			{/if}
		</form>
	</blockquote>
	<xblock>
<!--		<a class="layui-btn" target="_blank" href="{:URL(request()->controller().'/export',$Request.param)}"><i class="layui-icon layui-icon-download-circle"></i>Excel</a>-->

		<button class="layui-btn" title="发放分红" onclick="zhiju_show('统计静态分红','{:url(\'account/add_bonus\')}',680,370)">统计静态分红</button>

		<span class="x-right" style="line-height:40px">共有数据：{$list->total()} 条</span>
	</xblock>
	<table class="layui-table layui-form">
		<thead>
		<tr>
			<th>分红单号</th>
			<th>开始时间</th>
			<th>截止时间</th>
			<th>总收入</th>
			<th>分配金额</th>
			<th>总人数</th>
			<th>发放时间</th>
			<th>发放人</th>
		</tr>
		</thead>
		<tbody>
		{volist name="list" id="v"}
		<tr class="data_line" data_id="{$v.id}">
			<td>{$v.code}</td>
			<td>
				{if $v.start_time}
				{:date('Y-m-d H:i:s',$v.start_time)}
				{else}
				-
				{/if}
			</td>
			<td>{:date('Y-m-d H:i:s',$v.end_time)}</td>
			<td>{$v.total_amount}</td>
			<td>{$v.allocation_amount}</td>
			<td>{$v.member_count}</td>
			<td>{:date('Y-m-d H:i:s',$v.create_time)}</td>
			<td>{$v.create_emp_name}</td>
		</tr>
		{/volist}
		</tbody>
	</table>
	<div class="page"><div>{$list->render()}</div></div>
</div>
</body>
</html>